class explosion_c:
    def __init__(self, game, x, y, sizeX=32, sizeY=32):
        self.game = game
        self.pos = (x-sizeX/2, y-sizeY/2)
        self.size = (sizeX, sizeY)
        self.graphic = pygame.transform.scale(game.img["explosion"], sizeX, sizeY)

    def draw(self):
        pygame.draw.circle(self.level, (0, 0, 0, 255), (self.x, self.y), self.size[0])
        self.game.redrawArea += [(self.x, self.y, self.size[0], self.size[1])]
        
        self.game.playSound("pop")
        self.game.screen.blit(self.graphic, (self.x, self.y))
